 <% if can_edit_ecase?(@ref) %>
 <table onmouseover="show_btn('video')" onmouseout="hide_btn('video')" class="for_rbtn" ><tr><td class="for_rbtn" >
<p id="btn_video" >
  <%= link_to_remote image_tag('left_delete.gif'), {:update => "sv_admin",
    :after => "insertWaitingImg('sv_admin')",
    :url => {:controller => "video", :action => "delete_video", :id => @ref.id, :v_type => @ref.get_type },:confirm => 'Are you sure?'} %></p></td><td>
    <div id="video_admin_content">
    <p class="title_type">Edit Video</p>
    <%= form_remote_tag(:update => 'sv_admin',
      :after => "insertWaitingImg('sv_admin')", 
      :url => {:controller => 'video', :action => 'update_video', 
        :id => @ref.id ,:v_type => @ref.get_type} ) %>
     <%= render :partial => '/video/form' %>    
     <p><%= submit_tag 'Update Video' %> 
       <%= link_to_remote('<input type="button" value="Cancel" />',
    :update => 'sv_admin',:after => "insertWaitingImg('sv_admin')",
     :url => {:controller => 'video', :action => 'show_video', 
        :id => @ref.id ,:v_type => @ref.get_type})%> </p>  
     <%= end_form_tag %>        
    </div>
    </td></tr></table>    
<% end %>
